package com.zhuzi.webservice;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

/**
 * @author zhuzi
 * 2022/8/2 16:48
 */
@Slf4j
@WebService(
        //serviceName = "TestService", // 与接口中指定的name一致
        //targetNamespace = "http://server.webservice.Bag.admin.com", // 与接口中的命名空间一致,一般是接口的包名倒
        //endpointInterface = "com.zhuzi.webservice.TestService"// 接口地址
)
@Component
public class TestServiceImpl implements TestService {

    @Override
    public String sendMessage(String username) {
        return "=====Hello! " + username + "=====";
    }

    @Override
    public boolean getFlag(String username, boolean time) {
        log.info("TestService被调用:参数[{}][{}]", username, time);
        return true;
    }
}
